package com.corticon.dialogs.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;


/**
 * NetIncome entity.
 *
 * @author Lifan Yang
 */
@Entity
@Table(name = "netincome")
public class NetIncome extends AuditableEntity implements Serializable {

    private Long netIncomeId;
    private String id;
    private Long max;
    private Long min;
    private Long score;

    public NetIncome() {
    }


    // Property accessors
    @Id
    @SequenceGenerator(name = "netincome_id_seq",
            sequenceName = "netincome_id_seq",
            allocationSize = 1, initialValue = 1)
    // Set allocationSize and initialValue
    // to let sequence increment following DB.
    @GeneratedValue(strategy = GenerationType.AUTO, generator = "netincome_id_seq")
    @Column(name = "netincome_id",  nullable = false, columnDefinition = "integer")
    public Long getNetIncomeId() {
        return this.netIncomeId;
    }

    public void setNetIncomeId(Long netIncomeId) {
        this.netIncomeId = netIncomeId;
    }

    @Column(name = "id", length = 256)
    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Column(name = "max", columnDefinition = "numeric")
    public Long getMax() {
        return this.max;
    }

    public void setMax(Long max) {
        this.max = max;
    }

    @Column(name = "min", columnDefinition = "numeric")
    public Long getMin() {
        return this.min;
    }

    public void setMin(Long min) {
        this.min = min;
    }

    @Column(name = "score")
    public Long getScore() {
        return this.score;
    }

    public void setScore(Long score) {
        this.score = score;
    }
}